//
//  YMUser.swift
//  Driver
//
//  Created by lantaiyuan on 2017/9/22.
//  Copyright © 2017年 youmy. All rights reserved.
//

import UIKit
import YYKit

class YMUser: NSObject, NSCoding {
    func encode(with aCoder: NSCoder) {
        var count: UInt32 = 0
        guard let ivars = class_copyIvarList(self.classForCoder, &count) else{
            return
        }
        
        for i in 0 ..< count {
            let ivar = ivars[Int(i)]
        
            if let name = ivar_getName(ivar){
                let key = NSString.init(utf8String: name) as String?
                
                if let value = self.value(forKey: key!){
                    
                }
            }
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        
    }
    
    
    dynamic var accountStatus:Int64 = 0
    dynamic var birthday:String = ""
    dynamic var cityCode:String = ""
    dynamic var cityName:String = ""
    dynamic var headImageUrl:String = ""
    dynamic var mobilephone:String = ""
    dynamic var userId:String = ""
    dynamic var username:String = ""
    dynamic var invaildDate:String = ""
    dynamic var token:String = ""
    dynamic var vehicleId:String = ""
    dynamic var busSeats:String = ""
    
    override var description: String{
        return modelDescription()
    }
}
